<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
            background-color: #f8f8f8;
        }
        #header {
        	height: 48px;
        	line-height: 48px;
        	background-color: #e62442;
        	color: #fff;
            overflow: hidden;
        }
        #header .header_left {
        	width: 20%;
            height: 100%;
            float: left;
        	padding-left: 18px;
        	box-sizing: border-box;
            display: -webkit-box;
            -webkit-box-align: center;
        }
        #header .header_left img {
        	height: 20px;
        	display: block;
        }
        #header .header_right {
        	width: 60%;
            height: 100%;
            float: left;
        	box-sizing: border-box;
        	font-size: 17px;
        	text-align: center;
        }
        #header .header_sure {
            width: 20%;
            height: 100%;
            float: left;
            box-sizing: border-box;
            font-size: 17px;
            text-align: right;
            padding-right: 20px;
        }
        #footer {
        	width: 100%;
        	padding: 15px;
        	box-sizing: border-box;
        	position: fixed;
        	bottom: 0;
        }
        #footer .btn {
        	width: 100%;
        	height: 44px;
        	line-height: 44px;
        	background-color: #e62442;
        	color: #fff;
        	font-size: 15px;
        	text-align: center;
        	border-radius: 5px;
        }
        .tap_active {
            /*background-color: rgba(0, 0, 0, 0.1);*/
        }
    </style>
</head>
<body>
	<header id="header">
    	<div class="header_left" onclick="api.closeWin();" tapmode="tap_active">
    		<img src="../image/back.png">
    	</div>
    	<div class="header_right"></div>
        <div class="header_sure" onclick="fnConfirm();" tapmode>确认</div>
    </header>
   
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.js"></script>
<script type="text/javascript">
    apiready = function(){
        $api.fixStatusBar(header);
        var field = api.pageParam.field;
        var name = api.pageParam.name;
        var holder = api.pageParam.holder;
        var type = api.pageParam.type;
        var value = api.pageParam.value;
        $('.header_right').text(name);
        api.openFrame({
            name: 'edit_shop_frame',
            url: 'edit_shop_frame.html',
            rect: {
                x: 0,
                y: $('#header').height(),
                w: 'auto',
                h: api.winHeight - $('#header').height()
            },
            bounces: true,
            pageParam : {
                field : field,
                name : name,
                holder : holder,
                type:type,
                value : value
            }
        });
    };

    function fnConfirm() {
        api.sendEvent({
            name: 'confirmEditGoodsEvent',
            extra: {
            }
        });
    }
</script>
</html>